﻿@page
@model IndexModel
@{
    ViewData["Title"] = "Home page";
}

<script type="text/javascript" src="~/js/camera.js"></script>

<div class="text-center">
    <video id="video1" width="640" height="480" autoplay controls muted></video>
    <video id="video2" width="640" height="480" autoplay controls muted></video>
</div>

<script>
    window.onload = function () {
        //if (!h5camera.isSupport()) {
        //   return;
        //}
        var camera1 = new h5camera();
        camera1.attach("video1", "/hc", "camera1");
        var camera2 = new h5camera();
        camera2.attach("video2", "/file", "a.h264");
    }
</script>